package com.sanbi.common.config;

import com.github.houbb.property.support.converter.IFieldValueContext;
import com.github.houbb.property.support.converter.IPropertyValueContext;
import com.github.houbb.property.support.converter.IValueConverter;

public class IntegerValueConverter implements IValueConverter {
    @Override
    public Object fieldValue(String value, IFieldValueContext context) {
        return Integer.valueOf(value);
    }

    @Override
    public String propertyValue(Object value, IPropertyValueContext context) {
        return String.valueOf(value);
    }
}
